#include "Log.hpp"
#include "ThreadPool.hpp"
#include "Task.hpp"
#include <unistd.h>
using namespace LogModule;
using namespace ThreadModule;
int main() {
    EnableConsoleLogStrategy();
    int count = 10;
    while(count) {
        sleep(1);
        ThreadPool<task_t>::GetInstance()->Enqueue(Download);
        count--;
    }
    ThreadPool<task_t>::GetInstance()->Stop();
    ThreadPool<task_t>::GetInstance()->Join();
    return 0;
}